QT += quick

CONFIG += c++11

DEFINES += QT_DEPRECATED_WARNINGS

SOURCES += \
        src/DeviceAddItem.cpp \
        src/DeviceAddModel.cpp \
        src/QuickModel/QuickItemBase.cpp \
        src/QuickModel/QuickListModel.cpp \
        src/QuickModel/QuickListModelBase.cpp \
        src/main.cpp

HEADERS += \
    src/DeviceAddItem.h \
    src/DeviceAddModel.h \
    src/QuickModel/QuickItemBase.h \
    src/QuickModel/QuickListModel.h \
    src/QuickModel/QuickListModelBase.h
CONFIG(debug, debug|release) {
    #debug模式直接用本地文件,不要qrc资源文件。这样调试快一些。
    DEFINES += qmlPath=\\\"file:///$$PWD/Qml/\\\"
    DEFINES += imgPath=\\\"file:///$$PWD/Image/\\\"
} else {
    #release模式用qrc、走资源文件。这样发布不会携带源码。
    RESOURCES += \
        Image/Image.qrc \
        Qml/Qml.qrc

    DEFINES += qmlPath=\\\"qrc:/Qml/\\\"
    DEFINES += imgPath=\\\"qrc:/Image/\\\"
}

OTHER_FILES += \
    LICENSE \
    README.md \
    .clang-format \
    .gitattributes \
    .gitignore


